finding the LCD for rational expressions